package com.excellence.mapper;

import com.excellence.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 沈秉璋
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-04-08 09:33:27
* @Entity pojo.User
*/
@Mapper
public interface UserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    List<User> selectAll();

    int updateByPrimaryKeySelective(User record);

    User selectByUsername(String userUsername);

    int updateByPrimaryKey(User record);

    User userLogin(User user);
}
